Skip to content

Update object handlers #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2022

Conversation

iluuu1994
Copy link
Contributor

This file only exists for the PHP 5 part of the book, I wonder if it's time to merge those and just make master match the current master version of php-src itself.

@nikic
Copy link
Collaborator

nikic commented Jun 3, 2022

Updating the PHP 5 part with PHP 7 docs doesn't make sense. The object section would likely need a from scratch rewrite for PHP 7, because things changed a lot in that area.

@iluuu1994
Copy link
Contributor Author

@nikic I only noticed that this was in the PHP 5 section after. Should I copy the whole chapter to the 7 section and remove anything that's no longer accurate? Does it make sense to keep the two versions around?

@iluuu1994 iluuu1994 force-pushed the update-object-handlers branch 3 times, most recently from dce8477 to 243bdeb Compare June 5, 2022 17:18
@iluuu1994 iluuu1994 force-pushed the update-object-handlers branch from 243bdeb to ef7414f Compare June 5, 2022 17:24
@iluuu1994
Copy link
Contributor Author

@nikic I copied the handler descriptions to the PHP 7/8 section and removed anything else that might be outdated. There were also some handlers missing which I added. Let me know if this looks good to you. Could you grant me edit access to this repository? I won't merge anything without creating an PR first except for minor non-technical things like typos.

This is just the internal way of implementing the ``Countable::count`` method. The function returns a
``zend_result`` and assigns the value to the ``zend_long *count`` pointer.

.. FIXME: Change return type of count_elements to zend_result to make it more obvious the count is not returned?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@nikic nikic merged commit aa831fd into phpinternalsbook:master Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants